﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="LinksTable" Src="/_controltemplates/LinksTable.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="LinkSection" Src="/_controltemplates/LinkSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ActionBar" Src="/_controltemplates/ActionBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" Src="/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" Src="/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" Src="/_controltemplates/Welcome.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditViewPermissions.aspx.cs" Inherits="SharePointListSecurity.Layouts.SharePointListSecurity.EditViewPermissions" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet" width="100%">
        <colgroup>
            <col></col>
            <col style="width: 416px;"></col>
        </colgroup>
        <tr>
            <td>
                <wssuc:inputformsection id="editPermissionSection" runat="server"
                    title="EditViewPermissions"
                    description="editPermissionDescription">
                    <template_inputformcontrols>
                            <wssuc:InputFormControl runat="server" LabelText="Permission:">
                                <Template_Control>                   
                                    <div class="ms-authoringcontrols">
                                        <asp:DropDownList ID="ddlEditPermissions" Width="100" runat="server">
                                            <asp:ListItem Text="Deny" Value="Hide Field" Selected="True"></asp:ListItem>
                                            <asp:ListItem Text="Allow" Value="Show Field"></asp:ListItem>
                                        </asp:DropDownList>                             
                                    </div>
                                </Template_Control>
                            </wssuc:InputFormControl>
                            <wssuc:InputFormControl runat="server" LabelText="UsersAndGroups">
                                <Template_Control>                   
                                    <div class="ms-authoringcontrols">
                                           <wssawc:PeopleEditor AllowEmpty=true	ValidatorEnabled="true"	id="pplEditPermissions"	runat="server" ShowCreateButtonInActiveDirectoryAccountCreationMode=true SelectionSet="User,SecGroup,SPGroup"/>
                                    </div>
                                </Template_Control>
                            </wssuc:InputFormControl>
                        </template_inputformcontrols>
                </wssuc:inputformsection>
            </td>
        </tr>
        <tr>
            <td class="ms-sectionline" height="2" colspan="2">
                <img alt="" src="/_layouts/images/blank.gif" width="1" height="1"></td>
        </tr>
        <tr>
            <td colspan="2">
                <table cellspacing="0" cellpadding="0" width="100%">
                    <colgroup>
                        <col width="99%">
                        <col width="1%">
                    </colgroup>
                    <tbody>
                        <tr>
                            <td>&nbsp;</td>
                            <td nowrap>
                                <%--OnClick="DeltePermissions_Click"--%>
                                <asp:Button CssClass="ms-ButtonHeightWidth"  AccessKey="O" OnClientClick="return confirmdelete();" ID="DeltePermissions" runat="server" Text=" Delete" />
                                <span class="ms-SpaceBetButtons">
                                    <img src="/_layouts/images/blank.gif" width="60" height="1">
                                    <span class="ms-SpaceBetButtons">
                                        <%--OnClick="SavePermissions_Click"--%> 
                                        <asp:Button CssClass="ms-ButtonHeightWidth" AccessKey="O" ID="SavePermissions" runat="server" Text="OK" />
                                        <input class="ms-ButtonHeightWidth" id="oneditCancelItem" accesskey="c" type="button" value="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,multipages_cancelbutton_text%>' EncodeMethod='HtmlEncode'/>" onclick="if (typeof (window.frameElement) != 'undefined' && window.frameElement != null) { window.frameElement.cancelPopUp(); return false; } if (window.history.length > 0) { window.history.back(); return false; } else { return false; }" />
                                    </span>
                                </span>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <%=spList.Title%>   <asp:Literal ID="Literal1" runat="server" Text="Permissions" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    <a id=onetidListHlink href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(spList.DefaultViewUrl,true),Response.Output);%>><%SPHttpUtility.HtmlEncode(spList.Title,Response.Output);%></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow1" runat="server" />
    <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(this.Web.Url + "/_layouts/listedit.aspx?List=" + spList.ID.ToString(), true), Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType1" runat="server" String="<%$Resources:wss,listsettings_titleintitlearea%>" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow2" runat="server" />
    <a href=<%SPHttpUtility.AddQuote(SPHttpUtility.UrlPathEncode(this.Web.Url + "/_layouts/sharePointlistSecurity/ViewPermissions.aspx?List={" + spList.ID.ToString() + "}", true), Response.Output);%>> <SharePoint:FormattedStringWithListType ID="FormattedStringWithListType2" runat="server" String="Views Permissions" LowerCase="false" /></a>&#32;<SharePoint:ClusteredDirectionalSeparatorArrow ID="ClusteredDirectionalSeparatorArrow3" runat="server" />
	<%=viewName%>
</asp:Content>
